package com.qf.service.impl;


import com.qf.dao.GoodsDao;
import com.qf.dao.impl.GoodsDaoImpl;
import com.qf.service.GoodsService;
import com.qf.pojo.PageBean;
import com.qf.pojo.TbGoods;

import java.util.List;

/**
 * Create by 周志豪 on 2022/8/21  10:45
 *
 * @authoe 周志豪
 * @veision 1.0
 * //TODO  想好了再去做
 * @since 1.0
 */

public class GoodsServiceImpl implements GoodsService {

    private GoodsDao goodsDao = new GoodsDaoImpl();

    @Override
    public List<TbGoods> findByType(Long typeId, PageBean pageBean) {
        return goodsDao.findByType(typeId,pageBean);
    }

    @Override
    public TbGoods findById(Long id) {
        return goodsDao.findById(id);
    }

    @Override
    public List<TbGoods> findByIds(List ids) {
        return goodsDao.findByIds(ids);
    }
}
